package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import java.util.List;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.ShopInfoBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetShopListIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.ListListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetShopListModel extends RetrofitBaseModel implements GetShopListIface<ShopInfoBean> {
    private AllService allService;
    private Retrofit retrofit;
    public GetShopListModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getShopList(ListListener<ShopInfoBean> listListener) {
        Call<List<ShopInfoBean>> call = allService.getShopList();
        callenqueueList(call,listListener);
    }
}
